2008-03-03 Tor Lillqvist <tml@novell.com>
* modules/engines/ms-windows/msw_style.c (draw_box): Check that
the widget is a GtkButton before casting.
svn path=/trunk/; revision=19690
+2008-03-03 Tor Lillqvist <tml@novell.com>
+
+ * modules/engines/ms-windows/msw_style.c (draw_box): Check that
+ the widget is a GtkButton before casting.
+
2008-03-02 Johan Dahlin <johan@gnome.org>
* configure.in: Compare using = instead of ==, which is portable.
}
}
else if (is_toolbar_child (widget->parent)
- || (GTK_RELIEF_NONE ==
- gtk_button_get_relief (GTK_BUTTON (widget))))
+ || (!GTK_IS_BUTTON (widget) ||
+ (GTK_RELIEF_NONE == gtk_button_get_relief (GTK_BUTTON (widget)))))
{
if (draw_tool_button (window, widget, style, x, y,
width, height, state_type, area))